/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.user;

import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户币种日志Entity
 * @author 罗天文
 * @version 2018-05-08
 */
public class HkUserCurrencyLog extends DataEntity<HkUserCurrencyLog> {
	
	private static final long serialVersionUID = 1L;
	private HkUser user;		// 用户id
	private String currencyType;		// 币种类型
	private String currency;		// 数量
	private String type;		// 类型
	private String lastCurrency;		// 剩余币种
	private String integral;		// 乐币数量
	
	public HkUserCurrencyLog() {
		super();
	}

	public HkUserCurrencyLog(String id){
		super(id);
	}

	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=1, message="币种类型长度必须介于 0 和 1 之间")
	public String getCurrencyType() {
		return currencyType;
	}

	public void setCurrencyType(String currencyType) {
		this.currencyType = currencyType;
	}
	
	@Length(min=0, max=11, message="数量长度必须介于 0 和 11 之间")
	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}
	
	@Length(min=0, max=1, message="类型长度必须介于 0 和 1 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=11, message="剩余币种长度必须介于 0 和 11 之间")
	public String getLastCurrency() {
		return lastCurrency;
	}

	public void setLastCurrency(String lastCurrency) {
		this.lastCurrency = lastCurrency;
	}
	
	@Length(min=0, max=11, message="乐币数量长度必须介于 0 和 11 之间")
	public String getIntegral() {
		return integral;
	}

	public void setIntegral(String integral) {
		this.integral = integral;
	}
	
}